package com.siwei.mes.entity.tgl;

import com.siwei.mes.common.validator.bus.SyncGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;


/**
 * TGL-任务单配合比(TglTrwdphb)实体类
 *
 * @author linzi
 * @since 2023-12-09 12:01:18
 */
@Data
@Accessors(chain = true)
@Table(name = "tgl_trwdphb")
@ApiModel(value = "TglTrwdphb", description = "TGL-任务单配合比")
public class TglTrwdphb implements Serializable {
    private static final long serialVersionUID = 713181153073783567L;
    /**
     * 主键id
     */
    @Id
    @ApiModelProperty(value = "TGL-任务单配合比主键ID", name = "id")
    private Long id;
    @Column(name = "FId")
    @ApiModelProperty(value = "配合比id", name = "fid")
    private Integer fid;
    /**
     * 任务单号
     */
    @Column(name = "FRwdh")
    @ApiModelProperty(value = "任务单号", name = "frwdh")
    private Integer frwdh;
    /**
     * 类别
     */
    @Column(name = "FPblx")
    @ApiModelProperty(value = "类别", name = "fpblx")
    private String fpblx;
    /**
     * 调整前配比编号
     */
    @Column(name = "FPbh1")
    @ApiModelProperty(value = "调整前配比编号", name = "fpbh1")
    private Integer fpbh1;
    /**
     * 调整后配比编号
     */
    @Column(name = "FPbh2")
    @ApiModelProperty(value = "调整后配比编号", name = "fpbh2")
    private Integer fpbh2;
    /**
     * 累计车数
     */
    @Column(name = "FLjcs")
    @ApiModelProperty(value = "累计车数", name = "fljcs")
    private Integer fljcs;
    /**
     * 操作员
     */
    @Column(name = "FCzy")
    @ApiModelProperty(value = "操作员", name = "fczy")
    private String fczy;
    /**
     * 试验员
     */
    @Column(name = "FSyy")
    @ApiModelProperty(value = "试验员", name = "fsyy")
    private String fsyy;
    /**
     * 备注
     */
    @Column(name = "FBz")
    @ApiModelProperty(value = "备注", name = "fbz")
    private String fbz;
    @Column(name = "updateTime")
    @ApiModelProperty(value = "修改时间", name = "updatetime")
    private Date updatetime;
    @Column(name = "FNo")
    @ApiModelProperty(value = "${column.comment}", name = "fno")
    private Integer fno;
    /**
     * 同步时间戳
     */
    @Column(name = "synctime")
    @ApiModelProperty(value = "同步时间戳", name = "synctime")
    @NotNull(groups = {SyncGroup.class}, message = "同步时间戳为空")
    private Long synctime;
}
